package com.bzg.test;

import com.bzg.spring.component.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.context.annotation.RequestScope;

@ComponentScan("com.bzg.test")
@Configuration()
@EnableTransactionManagement
public class AppConfig {



	@Bean
	public UserService set() {
		System.out.println(22);
		userChild();
		userChild();
		return new UserService();
	}

	@Bean
	public UserChild userChild() {
		System.out.println(11);
		return new UserChild();
	}

}
